home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
C/C++ Users Group Library 1996 July
/
C-C++ Users Group Library July 1996.iso
/
vol_100
/
198_01
/
ebind.h
< prev
next >
Wrap
Text File
|
1990-01-21
|
16KB
|
524 lines
/* EBIND: Initial default key to function bindings for
MicroEMACS 3.7
*/
/*
* Command table.
* This table is *roughly* in ASCII order, left to right across the
* characters of the command. This explains the funny location of the
* control-X commands.
*/
KEYTAB keytab[NBINDS] = {
{CTRL|'A', gobol},
{CTRL|'B', backchar},
{CTRL|'C', insspace},
{CTRL|'D', forwdel},
{CTRL|'E', goeol},
{CTRL|'F', forwchar},
{CTRL|'G', ctrlg},
{CTRL|'H', backdel},
{CTRL|'I', tab},
{CTRL|'J', indent},
{CTRL|'K', killtext},
{CTRL|'L', refresh},
{CTRL|'M', newline},
{CTRL|'N', forwline},
{CTRL|'O', openline},
{CTRL|'P', backline},
{CTRL|'Q', quote},
{CTRL|'R', backsearch},
{CTRL|'S', forwsearch},
{CTRL|'T', twiddle},
{CTRL|'U', unarg},
{CTRL|'V', forwpage},
{CTRL|'W', killregion},
{CTRL|'X', cex},
{CTRL|'Y', yank},
{CTRL|'Z', backpage},
{CTRL|']', meta},
{CTLX|CTRL|'B', listbuffers},
{CTLX|CTRL|'C', quit}, /* Hard quit. */
#if AEDIT
{CTLX|CTRL|'D', detab},
{CTLX|CTRL|'E', entab},
#endif
{CTLX|CTRL|'F', filefind},
{CTLX|CTRL|'I', insfile},
{CTLX|CTRL|'L', lowerregion},
{CTLX|CTRL|'M', delmode},
{CTLX|CTRL|'N', mvdnwind},
{CTLX|CTRL|'O', deblank},
{CTLX|CTRL|'P', mvupwind},
{CTLX|CTRL|'R', fileread},
{CTLX|CTRL|'S', filesave},
#if AEDIT
{CTLX|CTRL|'T', trim},
#endif
{CTLX|CTRL|'U', upperregion},
{CTLX|CTRL|'V', viewfile},
{CTLX|CTRL|'W', filewrite},
{CTLX|CTRL|'X', swapmark},
{CTLX|CTRL|'Z', shrinkwind},
{CTLX|' ', remmark},
{CTLX|'?', deskey},
{CTLX|'!', spawn},
{CTLX|'@', pipecmd},
{CTLX|'#', filter},
{CTLX|'$', spawn},
{CTLX|'=', showcpos},
{CTLX|'(', ctlxlp},
{CTLX|')', ctlxrp},
{CTLX|'<', narrow},
{CTLX|'>', widen},
{CTLX|'^', enlargewind},
{CTLX|' ', remmark},
{CTLX|'0', delwind},
{CTLX|'1', onlywind},
{CTLX|'2', splitwind},
{CTLX|'A', setvar},
{CTLX|'B', usebuffer},
{CTLX|'C', spawncli},
#if BSD
{CTLX|'D', bktoshell},
#endif
{CTLX|'E', ctlxe},
{CTLX|'F', setfillcol},
#if DEBUGM
{CTLX|'G', dispvar},
#endif
{CTLX|'K', killbuffer},
{CTLX|'M', setmode},
{CTLX|'N', filename},
{CTLX|'O', nextwind},
{CTLX|'P', prevwind},
#if ISRCH
{CTLX|'R', risearch},
{CTLX|'S', fisearch},
#endif
{CTLX|'W', resize},
{CTLX|'X', nextbuffer},
{CTLX|'Z', enlargewind},
#if WORDPRO
{META|CTRL|'C', wordcount},
#endif
#if PROC
{META|CTRL|'E', execproc},
#endif
#if CFENCE
{META|CTRL|'F', getfence},
#endif
{META|CTRL|'H', delbword},
{META|CTRL|'K', unbindkey},
{META|CTRL|'L', reposition},
{META|CTRL|'M', delgmode},
{META|CTRL|'N', namebuffer},
{META|CTRL|'R', qreplace},
{META|CTRL|'S', newsize},
{META|CTRL|'T', newwidth},
{META|CTRL|'V', scrdwnxt},
#if WORDPRO
{META|CTRL|'W', killpara},
#endif
{META|CTRL|'X', execcmd},
{META|CTRL|'Z', scrupnxt},
{META|' ', setmark},
{META|'?', help},
{META|'!', reposition},
{META|'.', setmark},
{META|'>', goeob},
{META|'<', gobob},
{META|'\\', delfword},
{META|'~', unmark},
#if APROP
{META|'A', apro},
#endif
{META|'B', backword},
{META|'C', capword},
{META|'D', delfword},
#if CRYPT
{META|'E', setkey},
#endif
{META|'F', forwword},
{META|'G', gotoline},
{META|'K', bindtokey},
{META|'L', lowerword},
{META|'M', setgmode},
#if WORDPRO
{META|'N', goeop},
{META|'P', gobop},
{META|'Q', fillpara},
#endif
{META|'R', sreplace},
#if BSD | VMS
{META|'S', bktoshell},
#endif
{META|'U', upperword},
{META|'V', backpage},
{META|'W', copyregion},
{META|'X', namedcmd},
{META|'Z', quickexit},
{META|0x7F, delbword},
#if MSDOS & (HP150 == 0) & (WANGPC == 0) & (HP110 == 0)
{SPEC|CTRL|'_', forwhunt},
{SPEC|CTRL|'S', backhunt},
{SPEC|71, gobol},
#if DECEDT
{SPEC|72, scupwind},
{SPEC|80, scdnwind},
#else
{SPEC|72, backline},
{SPEC|80, forwline},
#endif
{SPEC|73, backpage},
{SPEC|75, backchar},
{SPEC|77, forwchar},
{SPEC|79, goeol},
{SPEC|81, forwpage},
{SPEC|82, insspace},
{SPEC|83, forwdel},
{SPEC|115, backword},
{SPEC|116, forwword},
#if WORDPRO
{SPEC|132, gobop},
{SPEC|118, goeop},
#endif
{SPEC|84, cbuf1},
{SPEC|85, cbuf2},
{SPEC|86, cbuf3},
{SPEC|87, cbuf4},
{SPEC|88, cbuf5},
{SPEC|89, cbuf6},
{SPEC|90, cbuf7},
{SPEC|91, cbuf8},
{SPEC|92, cbuf9},
{SPEC|93, cbuf10},
#endif
#if HP150
{SPEC|32, backline},
{SPEC|33, forwline},
{SPEC|35, backchar},
{SPEC|34, forwchar},
{SPEC|44, gobob},
{SPEC|46, forwpage},
{SPEC|47, backpage},
{SPEC|82, nextwind},
{SPEC|68, openline},
{SPEC|69, killtext},
{SPEC|65, forwdel},
{SPEC|64, ctlxe},
{SPEC|67, refresh},
{SPEC|66, reposition},
{SPEC|83, help},
{SPEC|81, deskey},
#endif
#if HP110
{SPEC|0x4b, backchar},
{SPEC|0x4d, forwchar},
{SPEC|0x48, backline},
{SPEC|0x50, forwline},
{SPEC|0x43, help},
{SPEC|0x73, backword},
{SPEC|0x74, forwword},
{SPEC|0x49, backpage},
{SPEC|0x51, forwpage},
{SPEC|84, cbuf1},
{SPEC|85, cbuf2},
{SPEC|86, cbuf3},
{SPEC|87, cbuf4},
{SPEC|88, cbuf5},
{SPEC|89, cbuf6},
{SPEC|90, cbuf7},
{SPEC|91, cbuf8},
#endif
#if AMIGA
{SPEC|'?', help},
{SPEC|'A', backline},
{SPEC|'B', forwline},
{SPEC|'C', forwchar},
{SPEC|'D', backchar},
{SPEC|'T', backpage},
{SPEC|'S', forwpage},
{SPEC|'a', backword},
{SPEC|'`', forwword},
{SPEC|'P', cbuf1},
{SPEC|'Q', cbuf2},
{SPEC|'R', cbuf3},
{SPEC|'S', cbuf4},
{SPEC|'T', cbuf5},
{SPEC|'U', cbuf6},
{SPEC|'V', cbuf7},
{SPEC|'W', cbuf8},
{SPEC|'X', cbuf9},
{SPEC|'Y', cbuf10},
{127, forwdel},
#endif
#if ST520
{SPEC|'b', help},
{SPEC|'H', backline},
{SPEC|'P', forwline},
{SPEC|'M', forwchar},
{SPEC|'K', backchar},
{SPEC|'t', setmark},
{SPEC|'a', yank},
{SPEC|'R', insspace},
{SPEC|'G', gobob},
{127, forwdel},
{SPEC|84, cbuf1},
{SPEC|85, cbuf2},
{SPEC|86, cbuf3},
{SPEC|87, cbuf4},
{SPEC|88, cbuf5},
{SPEC|89, cbuf6},
{SPEC|90, cbuf7},
{SPEC|91, cbuf8},
{SPEC|92, cbuf9},
{SPEC|93, cbuf10},
#endif
#if WANGPC
SPEC|0xE0, quit, /* Cancel */
SPEC|0xE1, help, /* Help */
SPEC|0xF1, help, /* ^Help */
SPEC|0xE3, ctrlg, /* Print */
SPEC|0xF3, ctrlg, /* ^Print */
SPEC|0xC0, backline, /* North */
SPEC|0xD0, gobob, /* ^North */
SPEC|0xC1, forwchar, /* East */
SPEC|0xD1, goeol, /* ^East */
SPEC|0xC2, forwline, /* South */
SPEC|0xD2, gobop, /* ^South */
SPEC|0xC3, backchar, /* West */
SPEC|0xD3, gobol, /* ^West */
SPEC|0xC4, ctrlg, /* Home */
SPEC|0xD4, gobob, /* ^Home */
SPEC|0xC5, filesave, /* Execute */
SPEC|0xD5, ctrlg, /* ^Execute */
SPEC|0xC6, insfile, /* Insert */
SPEC|0xD6, ctrlg, /* ^Insert */
SPEC|0xC7, forwdel, /* Delete */
SPEC|0xD7, killregion, /* ^Delete */
SPEC|0xC8, backpage, /* Previous */
SPEC|0xD8, prevwind, /* ^Previous */
SPEC|0xC9, forwpage, /* Next */
SPEC|0xD9, nextwind, /* ^Next */
SPEC|0xCB, ctrlg, /* Erase */
SPEC|0xDB, ctrlg, /* ^Erase */
SPEC|0xDC, ctrlg, /* ^Tab */
SPEC|0xCD, ctrlg, /* BackTab */
SPEC|0xDD, ctrlg, /* ^BackTab */
SPEC|0x80, ctrlg, /* Indent */
SPEC|0x90, ctrlg, /* ^Indent */
SPEC|0x81, ctrlg, /* Page */
SPEC|0x91, ctrlg, /* ^Page */
SPEC|0x82,